﻿#region Usings

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace DbConvertor.Dao.Entities
{
    public class PriceDomestic
    {
        #region Primitive Properties

        [Key]
        public long Id { get; set; }

        [Required]
        public int TarifNumber { get; set; }

        [Required]
        [MaxLength(2)]
        public string SubRu { get; set; }

        [Required]
        [MaxLength(1)]
        public string Class { get; set; }

        [Required]
        public int ZoneFrom { get; set; }

        [Required]
        public int ZoneTo { get; set; }

        [Required]
        public decimal Price { get; set; }

        [Required]
        public DateTime ValidFrom { get; set; }

        [Required]
        public DateTime ValidTo { get; set; }

        [Required]
        public short TrainType { get; set; }

        #endregion

        #region Navigation Properties
        

        #endregion
    }
}